package com.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.entity.User;
import com.mapper.UserMapper;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService{
    
    @Resource
    private UserMapper mapper;
    
    @Override
    public User login(String username, String password) {
        return mapper.login(username,password);
    }
}
